
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class CampRewards_libraryCfg : public ManualSingleton <CampRewards_libraryCfg>
{
	friend ManualSingleton <CampRewards_libraryCfg>;
public:
	CampRewards_libraryCfg();
	~CampRewards_libraryCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const CampRewards_libraryCfgInfo *GetCampRewards_libraryCfgInfo(int32_t libraryId);
	const CampRewards_libraryCfgMap *GetCampRewards_libraryCfgMap() { return &m_CampRewards_libraryCfgMap; }
private:
	CampRewards_libraryCfgMap m_CampRewards_libraryCfgMap;
};

#define  g_MakeCampRewards_libraryCfgTable() (CampRewards_libraryCfg::Instance())
#define  g_GetCampRewards_libraryCfgTable() (CampRewards_libraryCfg::GetInstance())
#define  g_DelCampRewards_libraryCfgTable() (CampRewards_libraryCfg::Destroy())